﻿using System;
using SilverCrmSoap.CrmSdk;


namespace Linq2Crm.Interpreter
{
	internal class ExpressionResult
	{
		/// <summary>
		/// </summary>
		/// <param name="queryExpression"> </param>
		/// <param name="domainObjectType"> </param>
		public ExpressionResult(QueryExpression queryExpression, Type domainObjectType, int skip, int take)
		{
			QueryExpression = queryExpression;
			DomainObjectType = domainObjectType;
			Skip = skip;
			Take = take;
		}

		/// <summary>
		/// 	Gets the query expression.
		/// </summary>
		/// <value> The query expression. </value>
		public QueryExpression QueryExpression { get; private set; }

		/// <summary>
		/// 	Gets the type of the domain object.
		/// </summary>
		/// <value> The type of the domain object. </value>
		public Type DomainObjectType { get; private set; }

		public int Skip { get; private set; }

		public int Take { get; private set; }
	}
}